package com.m.crm.web;

import com.m.crm.dto.BaseResult;
import com.m.crm.dto.BootStrapTableResult;
import com.m.crm.entity.MtUser;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yugoh on 2017/5/19.
 */
@RestController
@RequestMapping("/mt")
public class MtController {
    /**
     * 添加一个mt账户
     *
     * @return
     */
    @RequestMapping(value = "/users", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
    public BaseResult<Object> add(){
        // TODO
        return null;
    }

    /**
     * 查询mt账户列表
     *
     * @return
     */
    @RequestMapping(value = "/users", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
    public BootStrapTableResult<MtUser> userList(Integer accountId, Integer offset, Integer limit){
        // TODO
        return null;
    }

    /**
     * 根据ID查询mt用户详情
     *
     * @return
     */
    @RequestMapping(value = "/users/{userId}", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
    public Object getMtUser(){
        // TODO
        return null;
    }

    /**
     * 根据ID更改mt用户信息
     *
     * @return
     */
    @RequestMapping(value = "/users/{userId}", method = RequestMethod.PUT, produces = {"application/json;charset=UTF-8"})
    public Object updateMtUser(){
        // TODO
        return null;
    }
}
